/**
 * 
 */
package org.tp8.ektelesis.service.intf;

import java.io.File;
import java.util.List;

import org.tp8.ektelesis.exc.SearchToolException;
import org.tp8.ektelesis.model.SearchResult;

/**
 * @author tpanagopoulos
 * 
 */
public interface SearchService {

	public void openWriter(String path) throws SearchToolException;

	public void index(File file) throws SearchToolException;

	public void clearIndeces() throws SearchToolException;

	public void closeWriter() throws SearchToolException;

	public void openReader(String path) throws SearchToolException;

	public void closeReader() throws SearchToolException;

	public List<SearchResult> search(String value) throws SearchToolException;

}
